//
//  YXClassRoomCell.m
//  CreditCard
//
//  Created by 杨旭 on 2017/12/23.
//  Copyright © 2017年 杨旭. All rights reserved.
//

#import "YXClassRoomCell.h"
#import "YXClassRoomModel.h"
@interface YXClassRoomCell ()
@property (weak, nonatomic) IBOutlet UIView *backView;
@property (weak, nonatomic) IBOutlet UIImageView *picImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *contentLab;
@property (weak, nonatomic) IBOutlet UIButton *nextBtn;

@end

@implementation YXClassRoomCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = color_backColor;
    self.backView.layer.borderColor = color_lineColor.CGColor;
    self.backView.layer.borderWidth = 1.0f;
    self.nextBtn.layer.masksToBounds = YES;
    self.nextBtn.layer.cornerRadius = self.nextBtn.W / 2;
    self.nextBtn.layer.borderWidth = 1.f;
    self.nextBtn.layer.borderColor = color_lineColor.CGColor;
}

- (void)setModel:(YXClassRoomModel *)model {
    _model = model;
    _titleLab.text = _model.name;
    _contentLab.text = _model.introduce;
    [_picImageView sd_setImageWithURL:[NSURL URLWithString:_model.imghead] placeholderImage:[UIImage imageNamed:@""]];
}


@end
